<UserControl x:Class="Vibstudio.NetConfigurator.UI.Views.HeaderView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:converters="clr-namespace:Vibstudio.NetConfigurator.UI.Converters">

    <UserControl.Resources>
        <converters:VisibilityConverter x:Key="VisibilityConverter" />
    </UserControl.Resources>

    <DockPanel x:Name="HeaderPanel"
               Height="40"
               Background="{StaticResource HeaderBackgroundBrush}">
        <Image Source="/NetConfigurator;component/Images/configurator.png" />
        <StackPanel>
            <WrapPanel Height="22">
                <Label Content="{Binding ProductName, UpdateSourceTrigger=PropertyChanged}"
                       FontSize="14"
                       Foreground="White"
                       Margin="0,-2,0,-5" />
                <Label Content="{Binding ProductVersion, UpdateSourceTrigger=PropertyChanged}"
                       FontSize="12"
                       Foreground="Gray"
                       Margin="0,0,0,-2" />
            </WrapPanel>
            <WrapPanel Height="18">
                <Label Content="{Binding OSPlatformVersion, UpdateSourceTrigger=PropertyChanged}"
                       FontSize="10"
                       Foreground="DarkGray"
                       Margin="0,-3,0,0" />
                <Label Content="{Binding OSVersionDetails, UpdateSourceTrigger=PropertyChanged}"
                       FontSize="10"
                       Foreground="Gray"
                       Margin="0,-3,0,0" />
            </WrapPanel>
        </StackPanel>
        <DockPanel HorizontalAlignment="Right"
                   Margin="0,2,3,0"
                   VerticalAlignment="Top"
                   Visibility="{Binding ToolbarVisibility, Converter={StaticResource VisibilityConverter}}">
            <!--<Button BorderBrush="Transparent"
                        BorderThickness="0"
                        ClickMode="Release"
                        Command="{Binding Update}"
                        Template="{StaticResource UpdateAlertButton}"
                        Visibility="{Binding ToolbarVisibility, Converter={StaticResource VisibilityConverter}}">
                    <Button.ToolTip>
                        <ToolTip Content="{Binding UpdateAlertToolTip, UpdateSourceTrigger=PropertyChanged}"
                                 Template="{DynamicResource InformationToolTip}" />
                    </Button.ToolTip>
                </Button>-->
            <Button BorderBrush="Transparent"
                    BorderThickness="0"
                    ClickMode="Release"
                    Opacity="0.3"
                    Template="{StaticResource EngLangButton}">
            </Button>
            <Button BorderBrush="Transparent"
                    BorderThickness="0"
                    ClickMode="Release"
                    Opacity="0.3"
                    Template="{StaticResource GerLangButton}">
            </Button>
            <Button BorderBrush="Transparent"
                    BorderThickness="0"
                    ClickMode="Release"
                    Opacity="1"
                    Template="{StaticResource ItaLangButton}">
            </Button>
        </DockPanel>
    </DockPanel>
</UserControl>
